#[cfg(test)]
mod conversion_test {
    use stack::{base_conversion, ConversionEnum};

    #[test]
    fn base_conversion_test_2() {
        let test_num: usize = 3;
        let conver_type = ConversionEnum::TWO;
        let str = base_conversion(test_num, conver_type);
        assert_eq!("11", str);
    }
    #[test]
    fn base_conversion_test_8() {
        let test_num: usize = 9;
        let conver_type = ConversionEnum::EIGHT;
        let str = base_conversion(test_num, conver_type);
        assert_eq!("0x11", str);
    }
    #[test]
    fn base_conversion_test_10() {
        let test_num: usize = 11;
        let conver_type = ConversionEnum::TEN;
        let str = base_conversion(test_num, conver_type);
        assert_eq!("11", str);
    }
    #[test]
    fn base_conversion_test_16() {
        let test_num: usize = 17;
        let conver_type = ConversionEnum::SIXTHEEN;
        let str = base_conversion(test_num, conver_type);
        assert_eq!("0x11", str);
    }
}
